{extend name="user/index"  /}
{block name="user-main"}

        <!--右侧-->
        <div class="col-md-10 user-right">
            <span style="font-size: 20px">修改资料</span>
            <hr>
            <form action="{:url('home/index/update',['id'=>$data['id']])}" enctype="multipart/form-data" method="post" class="h3 mt20">
                <input type="hidden" name="id" value="{$data.id}">
                头像上传:
                <input type="file" name="image" value="{$data.icon}">
                <br>
                <br>
                用户昵称:
                <input type="text" name="name" value="{$data.name}" disabled >
                <br>
                <br>
                修改密码:
                <input type="password" name="pass" maxlength="11" >
                <br>
                <br>
                确认密码:
                <input type="password" name="repass" maxlength="11" >
                <br>
                <br>
                联系电话:
                <input type="text" name="tel" value="{$data.tel}" maxlength="11">
                <br>
                <br>
                联系邮箱:
                <input type="email" name="email" value="{$data.email}">
                <br>
                <br>
                选择性别:
                <select name="sex">
                    {switch name="data.sex"}
                    {case value="1"}<option value="1" selected>男</option>
                    <option value="2">女</option>{/case}
                    {case value="2"}<option value="1">男</option>
                    <option value="2" selected>女</option>{/case}
                    {default /}<option value="1" selected>男</option>
                    <option value="2">女</option>{/case}
                    {/switch}
                </select>

                <br>
                <hr>
                <input type="submit">
            </form>
        </div>
{/block}